package com.dodo.blog.model;

import javax.persistence.Entity;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
@Entity
public class Rate
        extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long articleId;

    private Long accountId;

    public Rate()
    {
    }

    public Rate( Long articleId, Long accountId )
    {
        this.articleId = articleId;
        this.accountId = accountId;
    }

    @Override
    public String toString()
    {
        return "Rate{" +
                "articleId=" + articleId +
                ", accountId=" + accountId +
                '}';
    }
}